<%= javascript_include_tag 'calendar.js', 'tasks.js' %>

<h1><%= @project.name %></h1>
<%= link_to('Edit project',:action=>:edit, :id => @project) %> |
<%= link_to('Tasks',:controller=>:task, :action=>:index, :id => @project) %>

<h2>Tasks done</h2>
<ul style="list-style-type:none;padding:0;font-size:small;">
<%= render(:partial=>'task', :collection=>@tasksdone) %>
</ul>

<h2>Calendar</h2>
<%= render(:partial=>'calendar/events', :locals=>{:msg=>''}) %>
<h2>Tasks <img id="loading" src="/images/icon_clock.gif" style="display:none;"></h2>

<% @tags.each do |tag| -%>
  <div id="tag_filter_<%=tag.name%>" class='tag' onclick="toggle_tag('project',<%=@project.id%>,'<%=tag.name%>')"><%=tag.name%></div>
<% end -%>  
<br/>
<br/>

<!-- Tasks List -->
<ul id="taskcontent" style="list-style-type:none;padding:0;">
<%= render(:partial=>'task', :collection=>@tasks) %>
</ul>

